package com.ruoyi.recycle.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 回收商品对象 recycle_commodity
 * 
 * @author ruoyi
 * @date 2022-05-22
 */
@ApiModel("回收商品")
@Data
@Accessors(chain = true)
@NoArgsConstructor
public class RecycleCommodity implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    @ApiModelProperty(name = "id", value = "商品ID")
    private Long id;

    /** 订单ID */
    @Excel(name = "订单ID")
    @ApiModelProperty(name = "orderId", value = "订单ID", required = true)
    private String orderId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    @ApiModelProperty(name = "recycleName", value = "商品名称")
    private String recycleName;

    /** 商品类型 */
    @Excel(name = "商品类型")
    @ApiModelProperty(name = "recycleType", value = "商品类型")
    private String recycleType;

    /** 预估重量 */
    @Excel(name = "预估重量")
    @ApiModelProperty(name = "forecastWeight", value = "预估重量")
    private BigDecimal forecastWeight;

    /** 备注 */
    @Excel(name = "备注")
    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;

    /** 创建人 */
    @Excel(name = "创建人")
    @ApiModelProperty(name = "createdBy", value = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:dd")
    @ApiModelProperty(name = "createdTime", value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    @ApiModelProperty(name = "updatedBy", value = "更新人")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:dd")
    @ApiModelProperty(name = "updatedTime", value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updatedTime;

    /** 图片 */
    @Excel(name = "图片")
    @ApiModelProperty(name = "img", value = "图片")
    private String img;

    /** 实际重量 */
    @Excel(name = "实际重量")
    @ApiModelProperty(name = "practicalWeight", value = "实际重量")
    private BigDecimal practicalWeight;


}
